package cn.com.nes.site.entity.vo.workOrder;
import cn.com.nes.site.entity.bo.workorder.GetWorkOrderRepairDetailBO;
import cn.com.nes.site.entity.vo.BaseVO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotNull;

/**
 * 查询安装工单详情VO
 *
 * @Author: ShenWei
 * @Date: 2024/05/23/9:58
 */
@Data
public class GetWorkOrderRepairDetailVO extends BaseVO {

    /**
     * 安装工单id
     */
    @NotNull(message = "安装工单id")
    private Long workOrderId;

    /**
     * 订单归属人ID
     */
    private String orderCreateUserId;

    private String orderBelongCompanyId;

    /**
     * 是否查询系统单信息
     */
    private Boolean queryPriceMasterInfo = Boolean.FALSE;

    public GetWorkOrderRepairDetailBO convertToBo() {
        GetWorkOrderRepairDetailBO getWorkOrderRepairDetailBO = new GetWorkOrderRepairDetailBO();
        BeanUtils.copyProperties(this, getWorkOrderRepairDetailBO);
        return getWorkOrderRepairDetailBO;
    }
}
